import { CoolController, BaseController } from '@cool-midway/core';
import { Body, Inject, Post, Get, Query } from '@midwayjs/core';
import { BannersettingBannerEntity } from '../../entity/banner'; 
import { BannersettingBannerService } from '../../service/banner'; 

/**
 * bannersetting模块-轮播设置
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: BannersettingBannerEntity,
  service: BannersettingBannerService,
  pageQueryOp: {
    keyWordLikeFields: ['title', 'description'],
    fieldEq: ['status', 'type'],
  }
})
export class AdminBannersettingBannerController extends BaseController {
    @Inject()
    bannersettingBannerService: BannersettingBannerService;
}
